package com.wiyun.engine.skeleton;

import android.content.res.AssetManager;
import android.graphics.Typeface;

import com.thoughtworks.xstream.XStream;
import com.wiyun.engine.nodes.Director;
import com.wiyun.engine.nodes.Label;
import com.wiyun.engine.nodes.Scene;
import com.wiyun.engine.types.WYSize;

public class FirstScene extends Scene {
	public FirstScene() {
		//WYSize s = Director.getInstance().getWindowSize();
	    MenuLayer menuLayer=new MenuLayer();
	    menuLayer.setPosition(0, 0);
	    addChild(menuLayer);
	    try{
	    XStream xStream = new XStream();
	    PictureObj obj=new PictureObj(1);
	    obj.setName("folder111");
	    obj.setIsPic(false);

	    PictureObj childObj1=new PictureObj(100);
	    childObj1.setName("pic111");
	    childObj1.setIsPic(true);
	    PictureObj childObj2=new PictureObj(101);
	    childObj2.setName("pic222");
	    childObj2.setIsPic(true);
	    obj.addChild(childObj1);
	    obj.addChild(childObj2);
	    String rst = xStream.toXML(obj);
	    System.out.println(rst);}
	    catch(Exception ex){System.out.println(ex.toString());}
	    if(XmlData.GetInstance().getDictPictureObj().elements().hasMoreElements())
	    	System.out.println(XmlData.GetInstance().getDictPictureObj().elements().nextElement().getName());
	    autoRelease(true);
    }
}
